package com.ruoyi.disasterassessment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.disasterassessment.mapper.DisasterAssessmentMapper;
import com.ruoyi.disasterassessment.domain.DisasterAssessment;
import com.ruoyi.disasterassessment.service.IDisasterAssessmentService;

/**
 * 安全评估时间Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-20
 */
@Service
public class DisasterAssessmentServiceImpl implements IDisasterAssessmentService 
{
    @Autowired
    private DisasterAssessmentMapper disasterAssessmentMapper;

    /**
     * 查询安全评估时间
     * 
     * @param id 安全评估时间主键
     * @return 安全评估时间
     */
    @Override
    public DisasterAssessment selectDisasterAssessmentById(Long id)
    {
        return disasterAssessmentMapper.selectDisasterAssessmentById(id);
    }

    /**
     * 查询安全评估时间列表
     * 
     * @param disasterAssessment 安全评估时间
     * @return 安全评估时间
     */
    @Override
    public List<DisasterAssessment> selectDisasterAssessmentList(DisasterAssessment disasterAssessment)
    {
        return disasterAssessmentMapper.selectDisasterAssessmentList(disasterAssessment);
    }

    /**
     * 新增安全评估时间
     * 
     * @param disasterAssessment 安全评估时间
     * @return 结果
     */
    @Override
    public int insertDisasterAssessment(DisasterAssessment disasterAssessment)
    {
        return disasterAssessmentMapper.insertDisasterAssessment(disasterAssessment);
    }

    /**
     * 修改安全评估时间
     * 
     * @param disasterAssessment 安全评估时间
     * @return 结果
     */
    @Override
    public int updateDisasterAssessment(DisasterAssessment disasterAssessment)
    {
        return disasterAssessmentMapper.updateDisasterAssessment(disasterAssessment);
    }

    /**
     * 批量删除安全评估时间
     * 
     * @param ids 需要删除的安全评估时间主键
     * @return 结果
     */
    @Override
    public int deleteDisasterAssessmentByIds(Long[] ids)
    {
        return disasterAssessmentMapper.deleteDisasterAssessmentByIds(ids);
    }

    /**
     * 删除安全评估时间信息
     * 
     * @param id 安全评估时间主键
     * @return 结果
     */
    @Override
    public int deleteDisasterAssessmentById(Long id)
    {
        return disasterAssessmentMapper.deleteDisasterAssessmentById(id);
    }
}
